<template>
    <div id="sidebar" style="height: 100%;width: 100%">
      <el-row class="tac" style="height: 100%;width: 100%">
        <el-col style="height: 100%;width: 100%">
          <el-menu
              router
              default-active="/dormitory_admin/blankPage"
              class="el-menu-vertical-demo"
              @open="handleOpen"
              @close="handleClose"
              background-color="#545c64"
              text-color="#fff"
              active-text-color="#ffd04b"
              style="height: 100%;width: 100%">
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>住宿管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/dormitory_admin/checkInManagement">入住管理</el-menu-item>
                <el-menu-item index="/dormitory_admin/checkOutManagement">转出管理</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-menu-item index="/dormitory_admin/repairManagement">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>维修管理</span>
              </template>
            </el-menu-item>
            <el-menu-item index="/dormitory_admin/HygieneManagement">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>卫生检查管理</span>
              </template>
            </el-menu-item>
            <el-menu-item index="/dormitory_admin/disciplineManagement">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>违纪管理</span>
              </template>
            </el-menu-item>
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>报表管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/dormitory_admin/allocationTable">住宿报表</el-menu-item>
                <el-menu-item index="/dormitory_admin/repairTable">维修报表</el-menu-item>
                <el-menu-item index="/dormitory_admin/HygieneTable">卫生检查报表</el-menu-item>
                <el-menu-item index="/dormitory_admin/disciplineTable">违纪报表</el-menu-item>
                <el-menu-item index="/dormitory_admin/ratingTable">星级报表</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-col>
      </el-row>
    </div>
</template>
<script>

export default {
  data () {
    return {
      loginForm: {
        username: '2024',
        password: '123',
        name: '张三'
      }
    }
  },
  methods: {
    handleOpen (key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose (key, keyPath) {
      console.log(key, keyPath)
    }
  }
}

</script>
<style scoped>

</style>
